/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import { Image, Space } from 'antd';
import React from 'react';

const PreviewImage: React.FC<{ images?: [] | string[] }> = (props) => {
  const { images = [] } = props;
  return (
    <Space>
      {images &&
        images.map((item) => (
          <Image alt='图片加载失败' key={item} src={item} width={80} style={{ maxHeight: 80 }} />
        ))}
    </Space>
  );
};

export default PreviewImage;
